package com.umeox.watch.moto.contact.ui

import android.content.ComponentName
import android.content.Intent
import android.os.Bundle
import android.widget.RelativeLayout
import com.umeox.moto.watch.themes.app.ThemeAppCompatActivity
import com.umeox.watch.moto.contact.R

/**
 * Created by Rambo 2024/5/10/0010
 * Describe:
 */
class MainActivity:ThemeAppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.act_main)
        findViewById<RelativeLayout>(R.id.contact_rl).setOnClickListener {
            startActivity(Intent(this@MainActivity,ContactsActivity::class.java))
        }

        findViewById<RelativeLayout>(R.id.calllog_rl).setOnClickListener {
            startActivity(Intent(this@MainActivity,CallLogListActivity::class.java))
        }

        findViewById<RelativeLayout>(R.id.dialpad_rl).setOnClickListener {
            val intent = Intent()
            intent.setClassName("com.umeox.watch.moto.launcher", "com.umeox.watch.moto.launcher.ui.DialPadActivity2")
            startActivity(intent)
        }
    }
}